package com.xlj.springbootmybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @MapperScan("***")这个注解非常的关键，
 * 这个对应了项目中mapper（dao）所对应的包路径,不加则会抛异常
 */
@SpringBootApplication
@MapperScan("com.xlj.springbootmybatis.*.mapper")
public class SpringbootMybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootMybatisApplication.class, args);
    }
}

